<?php 
$brand_id = $_GET["brand_id"];
$cat = $_GET["cat"];
?>

<div id="static_bar_placeholder" style="position: absolute; "></div>
  <div id="static_bar" style="z-index: 1001; position: relative; top: 0px; ">
    <div id="static_bar_bg"><img src="./images/static_bar.png" style="_padding-top:600px;"></div>
    <div id="static_bar_body">
      <div id="static_bar_counter" class="campaign-counter">
        <table>
        <tbody><tr>
          <td>
            <span>Kampanyanın bitmesine </span>
          </td>
          <td>
            <div class="campaign-counter-table-container">
              <table cellspacing="0" class="campaign-counter-table">
              <tbody>
              
              <?php 
              	$finish_time = $camp->date_finish;
	          	$d = DateTime::createFromFormat("Y-m-d H:i:s", $finish_time ." 05:00:00",new DateTimeZone("UTC"));
				$RD =  $d->format("m/d/Y H:i A");
				echo "<script language='JavaScript'>";
				echo "TargetDate='". $RD. "';";
				echo "CountActive = true;";
				echo "CountStepper = -1;";
				echo "LeadingZero = true;";
				echo "IsDetail = true;";
				echo "DisplayFormat ='<td class='d'>%%D%%</td><td class='custom-color'>gün</td><td class='h'>%%H%%</td><td class='custom-color'>saat</td><td class='m'>%%M%%</td><td class='custom-color'>dk</td>"."';";
				echo "FinishMessage = 'Kampanya sona ermiştir.'";
				echo "</script>";
	          ?>
			
				<script language="JavaScript" src="http://localhost/infophp/includes/counter.js"></script>
				
			
			
              </tbody></table>
            </div>
          </td>
          <td>
            <span class="campaign-counter-text custom-color">kaldı.</span>
          </td>
        </tr>
        </tbody></table>
      </div>
      <div id="static_bar_logo"><h1><span style="font-size:12px;"> Kampanya: </span><?php echo $camp->name;?></h1></div>
      <table id="static_bar_category" border="0">
        <tbody><tr>
          
          <td style="color:#fff;padding-right:6px;width:67px;">Kategoriler: </td>
          <td>
          
              <div style="color:#fff;"><?php $cats = $camp->getCategories();
              foreach ($cats as $ct) {
              	echo $ct. " > ";
              }
              ?></div>
              
          </td>
         
        </tr>
      </tbody></table>
    </div>
  </div>







<div id="content">
            <table class="content_layout" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody><tr>
            
            
  <td class="content_layout">


  
  <?php $camp->displayProducts($cat);?>
  
  

<div id="insertBefore" class="clear"></div></td>

            </tr>
            </tbody></table>
  
          </div>
          